import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home'
import Info from './views/Info'
import Login from './views/Login'
import Questions from './views/Questions'
import Check from './views/Check'
import Exam from './views/Exam'
import Types from './views/Types'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/info',
      name: 'Info',
      component: Info
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/questions',
      name: 'Questions',
      component: Questions
    },
    {
      path: '/check',
      name: 'Check',
      component: Check
    },
    {
      path: '/exam',
      name: 'Exam',
      component: Exam
    },
    {
      path: '/types',
      name: 'Types',
      component: Types
    },
    {
      path: '*',
      redirect: '/'
    }
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    // }
  ]
})
